package cc.messcat.service.fupin;

import cc.messcat.common.model.Pager;
import cc.messcat.common.service.BaseService;
import cc.messcat.entity.fupin.Family;
import cc.messcat.entity.fupin.PreventPoverty;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.util.List;

/**
 * 2018/4/27
 */
public interface PreventPovertyService extends BaseService<PreventPoverty>{

    void complexMaintainPreventPoverty(String country, String village, String householderName, List<Family> preventPovertyFamilyList, List<Long> oldPreventFamilyID);

    Pager<PreventPoverty> listPreventPoverty(PreventPoverty preventPoverty, Integer pageNo, Integer pageSize);

    HSSFWorkbook exportPreventPoverty(PreventPoverty preventPoverty, Integer pageNo, Integer pageSize);

    List<Long> getFamilyIDByPoorFamilyID(Long id);
}
